package com.secneo.appshare.activities;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.LinearLayout;

import com.secneo.appshare.AppShareApplication;
import com.secneo.appshare.R;
import com.secneo.appshare.common.Constants;


public class AboutActivity extends Activity
{
	private WebView mWebView;
	private Button mReturnBtn;

	protected void onCreate(Bundle paramBundle)
	{
		super.onCreate(paramBundle);
		setContentView(R.layout.sec_opt_help_webview);
		AppShareApplication.getInstance().addActivity(this);
		LinearLayout header = (LinearLayout) findViewById(R.id.helpHeaderView);
		header.setVisibility(View.GONE);

		mWebView = (WebView) findViewById(R.id.help_webview);
		mReturnBtn = (Button) findViewById(R.id.returnBtn);
		mReturnBtn.setOnClickListener(mReturnListener);
		mWebView.setBackgroundColor(0);
		mWebView.loadUrl(Constants.URL_ABOUT);
	}
	
	private final OnClickListener mReturnListener = new OnClickListener() {

		@Override
		public void onClick(View v) {
			finish();
		}
		
	};
}
